package com.cskaoyan.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.AdminLogListVo;
import com.cskaoyan.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/log")
public class LogController {
    @Autowired
    AdminService adminService;

    @GetMapping("/list")
    public BaseRespVo queryAdminLogList(String name, Integer page, Integer limit, String sort, String order){
        AdminLogListVo adminLogListVo = adminService.queryAdminLogList(name,page, limit, sort, order);
        return BaseRespVo.ok(adminLogListVo);
    }
}
